package com.keyleaf.up.document.config;

import cn.hutool.core.io.FileUtil;
import com.keyleaf.up.document.model.OfficeConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author keyleaf
 * @since 2025/5/30
 **/
@Data
@ConfigurationProperties(prefix = "document")
public class DocumentProperties {

    /**
     * 临时目录
     * <p>
     * 本项目会将原始文件下载到临时目录，转换后的pdf文件也会保存到临时目录，方便二次操作
     */
    private String tmpDir = FileUtil.getTmpDirPath() + "pdfMerge";

    /**
     * office配置
     */
    private OfficeConfig office = new OfficeConfig();

}
